<?php


namespace app\common\model;


class MediaModel extends CommonModel
{
    protected $name = 'media';

    /**
     * @param $filename
     * @return string
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/8/17
     * @Time: 18:50
     */
    public function getFilenameAttr($filename): string
    {
        return config('app.app_host').'/'.$filename;
    }
}